home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 68
/
64er_Magazin_Sonderheft_68_19xx_Markt__Technik_de_Side_A.d64
/
g+v rechnung
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
3KB
|
93 lines
10 print"[147]gewinn + verlust - rechnung = nh-02.91
11 rv$[178]"p
12 print"programmversion "rv$"
20 [151]781,4:[158]59903:[133]"onvon jahr 1991cmdcmdcmdcmdcmdcmd";a1:[139]a1[179]1900[167]20
22 [133]"onbis jahr 1991cmdcmdcmdcmdcmdcmd";a2:[139]a2[179]a1[167]20
23 [141]60
24 [159]15,8,15,"i0
30 fori=a1toa2:j$=right$(str$(i),4)
32 jn=jn+1
34 open2,8,2,"ad"+j$+",s,r
36 [132]15,e:[139]e[167]50
38 [132]2,a:[139]a[179]1[167]50
40 [129]j[178]1[164]a:[132]2,x$,a$,x$,x$:a(jn)[178]a(jn)[170][197](a$):[130]
50 [160]2:[159]2,8,2,"ed"[170]j$[170]",s,r
51 input#15,e:ifethen56
52 input#2,a:ifa<1then56
54 forj=1toa:input#2,x$,x$,x$,x$,x$,x$,e$:e(jn)=e(jn)+val(e$):next
56 close2:g(jn)=e(jn)-a(jn):ifg(jn)<.theng(jn)=.
58 next:goto100
60 print"drucker bereitmachen !
65 [153]"analyse ? [j/n]cmdcmdcmdcmdcmd";
66 [151]198,.
67 [161]an$:[139]an$[179][177]"j"[175]an$[179][177]"n"[167]67
68 [153]an$" "
70 [133]"heutiges datum tt.mm.91cmdcmdcmdcmdcmdcmdcmdcmdcmdcmd";da$:[142]
100 [159]4,4:sl[178]10
102 [152]4,"generalverwaltung: g + v rechnung
104 print#4:print#4,"jahre"a1"bis"a2" rev"rv$"31stand: "da$
105 print#4,"31[163][163][163][163][163]":forku=0to1
106 print#4:ku$="tatsaechlich":ifkuthenku$="kumulativ
107 ag[178]0:eg[178]0:sg[178]0:[152]4,"jahrestabelle: "ku$"
109 print#4:print#4,"jahr ! einnahmen ! ausgaben ! gewinn
110 [152]4,"------!-------------!-------------!-------------
112 jn=.:fori=a1toa2:jn=jn+1
114 print#4,right$(str$(i),4)" ! ";
116 a=e(jn):eg=eg+a:ifkuthena=eg
117 gosub1000:print#4,a$" ! ";
118 a=a(jn):ag=ag+a:ifkuthena=ag
119 gosub1000:print#4,a$" ! ";
120 a=g(jn):sg=sg+a:ifkuthena=sg
121 gosub1000:print#4,a$
122 next
124 print#4,"------!-------------!-------------!-------------
126 [152]4,"summe ! ";
128 a[178]eg:[141]1000:[152]4,a$" ! ";
130 a[178]ag:[141]1000:[152]4,a$" ! ";
132 a[178]sg:[141]1000:[152]4,a$
133 [152]4:[130]
134 [139]an$[178]"n"[167]900
200 [152]4:[152]4:[152]4,"a n a l y s e31stand: "da$:jn[178].
205 [152]4,"31tab(tab(tab(tab(tab(
210 fori=a1toa2:jn=jn+1:print#4:print#4,"analyse fuer"i"
211 [152]4:[152]4,"durchschnitt pro monat:42stundenlohn
212 print#4," einnahmen: dm";:a=e(jn)/12:gosub998:print#4,a$;:gosub700
213 print#4," ausgaben: dm";:a=a(jn)/12:gosub998:print#4,a$;:gosub710
214 print#4," gewinn: dm";:a=g(jn)/12:gosub998:print#4,a$:ife(jn)=.then228
215 print#4:print#4,"verteilung der einnahmen von dm";:a=e(jn):sl=9
216 gosub1000:print#4,a$":
220 [152]4," gewinn: dm";:a[178]g(jn):sl[178]9:[141]1000:[152]4,a$" = ";
222 a[178]100[172]a[173]e(jn):[141]999:[152]4,a$" %
224 print#4," ausgaben: dm";:a=a(jn):sl=9:gosub1000:print#4,a$" = ";
226 a=100*a/e(jn):gosub999:print#4,a$" %
228 [139]a1[178]i[167]299
230 [152]4:[152]4,"veraenderungen gegenueber dem vorjahr:
232 print#4," einnahmen: ";:d1=e(jn):d2=e(jn-1):gosub2000
234 print#4," ausgaben: ";:d1=a(jn):d2=a(jn-1):gosub2000
236 print#4," gewinn: ";:d1=g(jn):d2=g(jn-1):gosub2000
299 print#4:next:goto900
700 ifi<1990then705
702 print#4,"39(38.5 std. woche)":return
705 print#4,"40(39 std. woche)":return
710 ifi<1990then715
712 print#4,"43dm";:a=e(jn)/52/38.5:goto720
715 print#4,"43dm";:a=e(jn)/52/39
720 gosub999:print#4,a$:return
900 print#4:print#4,"alle betraege in dm
902 [152]4:[152]4,"negative betraege sind durch ein minuszeichen gekennzeichnet
905 print#4:print#4:print#4,"ende "da$
910 print#4:print#4:close4:end
998 sl=9:a=int(a*100+.5)/100:goto1000
999 sl=7:a=int(a*100+.5)/100
1000 a$=str$(a):ifa=int(a)thena$=a$+".
1002 [129]ii[178]1[164][195](a$):[139][202](a$,ii,1)[178]"."[167]1010
1004 [130]
1010 [139][195](a$)[171]ii[179]2[167]a$[178]a$[170]"0":[137]1010
1012 [139][195](a$)[179]sl[167]a$[178]" "[170]a$:[137]1012
1014 [142]
2000 d[178][181]((d1[171]d2)[172]100[170].5)[173]100:[139]d[178].[167][152]4,"keine aenderung":[142]
2002 vz$[178]"+":[139]d[179].[167]vz$[178]"-":d[178][171]d
2004 [152]4,vz$" dm";:sl[178]9:a[178]d:[141]1000:[152]4,a$;:[139]d2[178].[167][152]4:[142]
2005 [152]4," = "vz$;
2006 a[178]100[172]d[173]d2:[141]999:[152]4,a$" %":[142]